package com.fht.spring_boot_study.model.account.entity;

import com.fht.spring_boot_study.model.common.entity.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

    @Entity
    @Table(name = "account_resource")
public class Resource extends AbstractEntity {
        private String permission;

        @Transient
        private List<Role> roles;

        public String getPermission() {
            return permission;
        }

        public void setPermission(String permission) {
            this.permission = permission;
        }

        public List<Role> getRoles() {
            return roles;
        }

        public void setRoles(List<Role> roles) {
            this.roles = roles;
        }
}
